package com.zret.facetools;

import com.baidu.aip.face.AipFace;

/**
 * AipFace对象用单例模式
 * @author yuebin_qian
 *
 */
public class ClientSingle {
	private static AipFace client;
	private static final String appId="19381944";
	private static final String apiKey ="kDUGMd8dbLGpqngGoxGwKpCr";
	private static final String secretKey ="KV9c4gVBGQcmLOWvDPUjmmRvNv114PUr";
	/**
	 * 构造方法私有化
	 */
	private ClientSingle() {
		
	}
	
	public static synchronized AipFace getClient() {
		if (client==null) {
			client=new AipFace(appId, apiKey, secretKey);
		}
		return client;
	}
	

}
